package com.gitee.maskit.jackson.converter;

import com.fasterxml.jackson.databind.util.StdConverter;

public class JacksonBooleanToInteger extends StdConverter<Boolean, Integer> {
    public Integer convert(Boolean value) {
        return null != value && value ? 1 : 0;
    }
}
